package array;

public class ArrayInitValue {
	public static void main(String[] args) {
		// 只要是数组，开辟空间后都有默认值
		byte[] bs = new byte[1];
		short[] ss = new short[1];
		int[] is = new int[1];
		long[] ls = new long[1];
		float[] fs = new float[1];
		double[] ds = new double[1];
		boolean[] bls = new boolean[1];
		char[] cs = new char[1];
		System.out.println(bs[0]);  // 0
		System.out.println(ss[0]);  // 0
		System.out.println(is[0]);  // 0
		System.out.println(ls[0]);  // 0L
		System.out.println(fs[0]);  // 0.0f
		System.out.println(ds[0]);  // 0.0
		System.out.println(bls[0]); // false
		System.out.println(cs[0]);  // '\0' == 0
	}
}
